#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main() {
    int n = 0;
    scanf("%d", &n);
    int arr[n];
    int k = 0;
    for (int i = 0; i < n; i++)
    {
        scanf("%d", &arr[i]);
        int tmp = 0;
        for (int j = 0; j < i; j++)
        {
            if (arr[i] == arr[j])
            {
                tmp = 1;
                break;
            }
        }
        if (tmp == 0)
        {
            arr[k] = arr[i];
            k++;
        }
    }
    for (int i = 0; i < k; i++)
        printf("%d ", arr[i]);
    return 0;
}